package com.util;

import org.springframework.aop.SpringProxy;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 *@title      	标题：
 *@description 	描述：
 *@author 	  	作者 ：wuxionghao
 *@createTime 	创建时间：2011-12-29下午02:58:07
 *@version    	版本：v1.0
 */
@SuppressWarnings("unused")
public class SpringContext implements ApplicationContextAware{

	private static ApplicationContext context;//声明一个静态变量保存  
	
	@SuppressWarnings("static-access")
	public void setApplicationContext(ApplicationContext context)
			throws BeansException {
		this.context = context;
	}

	public static ApplicationContext getContext(){   
		return context;   
	}   
}
